﻿using MongoDB.Bson.Serialization.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    /// 转发定位信息
    /// </summary>
    [BsonIgnoreExtraElements]
    public class RelayRequestDto
    {
        /// <summary>
        /// 设备IMEI列表
        /// </summary>
        [Required(ErrorMessage = "设备IMEI列表")]
        public List<string> ImeiList { get; set; }

        /// <summary>
        /// 转发地址
        /// </summary>
        [Required(ErrorMessage = "转发地址")]
        public string RelayUrl { get; set; }

        /// <summary>
        /// 端口号
        /// </summary>
        [Required(ErrorMessage = "端口号")]
        public int Port { get; set; }

        /// <summary>
        /// 转发方式
        /// </summary>
        [Required(ErrorMessage = "转发方式")]
        public  RelayType RelayType { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        [Required(ErrorMessage = "启用")]
        public bool Enable { get; set; }
         
    }
}
